﻿<Page x:Class="MyCalManager.View.MonthView"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      xmlns:Graph="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit"
      mc:Ignorable="d" 
      d:DesignHeight="300" d:DesignWidth="300"
	  Title="MonthView"
      DataContext="{Binding MonthView, Source={StaticResource Locator}}">
    <Page.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Skins/MainSkin.xaml" />
                <ResourceDictionary Source="/Skins/Theme.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Page.Resources>

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"></RowDefinition>
            <RowDefinition Height="45"></RowDefinition>
        </Grid.RowDefinitions>
        <Graph:Chart Title="{Binding Title}" Margin="6">
            <Graph:Chart.Series >
                <Graph:ColumnSeries Title="Months" 
                                    ItemsSource="{Binding Months}" 
                                    DependentValueBinding="{Binding Diff}" 
                                    IndependentValueBinding="{Binding Month}"
                                    DataPointStyle="{StaticResource MyColumnDataPointStyle}">
                   
                </Graph:ColumnSeries>
            </Graph:Chart.Series>
        </Graph:Chart>
        <Button Margin="6" Grid.Row="1" Content="{Loc Back}" Width="70" Height="30" Command="{Binding Back}" HorizontalAlignment="Left"></Button>
    </Grid>
</Page>
